<!DOCTYPE html>
<html>
<head>
    <title>Blog</title>
</head>
<body>
    <h1>Blog Posts</h1>
    {% for post in posts %}
        <h2>{{ post.title }}</h2>
        <p>By {{ post.author.name }} on {{ post.published_date }}</p>
        <p>{{ post.text }}</p>
    {% endfor %}
</body>
</html>